<template>
<div>
  <div class="layout bg-color-darkblue">
    <div class="layout-container headline">
      <div class="text">
        <div class="h1">{{ $t('contact.headline.h1') }}</div>
        <div class="h2">{{ $t('contact.headline.h2') }}</div>
      </div>
      <img src="https://intelaulinpro.oss-cn-beijing.aliyuncs.com/contact/contact.png" alt="">
    </div>
  </div>
  <div class="layout bg-color-pink-blue">
    <div class="layout-container content">
      <div class="detail-box">
        <LogoContact />
<!--        <div class="logo">-->
<!--          <img v-if="$i18n.locale === 'zh'" src="https://intelaulinpro.oss-cn-beijing.aliyuncs.com/contact/contact-logo-zh.png" alt="">-->
<!--          <img v-if="$i18n.locale === 'en'" src="https://intelaulinpro.oss-cn-beijing.aliyuncs.com/contact/contact-logo-en.png" alt="">-->
<!--        </div>-->
        <div class="introduce">
          <div class="subtitle">{{ $t('contact.help.subtitle') }}</div>
          <div class="desc">
          <i18n path="contact.help.desc" style="white-space: pre-line;">
            <span @click="navToPageFAQ" place="faq" style="cursor: pointer; color: #0068B5;">{{ $t('contact.help.faq') }}</span>
          </i18n>
          </div>
        </div>
        <div class="team">
<!--          <div class="subtitle">{{ $t('contact.team.subtitle') }}</div>-->
          <div class="contact">
          <div class="contact-item" v-for="(i, index) in 3">
            <div class="type">{{ $t(`contact.team.contact[${index}].type`) }}</div>
            <div class="value">{{ $t(`contact.team.contact[${index}].value`) }}</div>
          </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
import LogoContact from "../../components/common/LogoContact";
export default {
  name: "contact",
  components: { LogoContact },
  methods: {
    navToPageFAQ () {
      this.$router.push({
        path: this.$i18n.path('faq')
      })
      this.$store.commit('SET_MENU_INDEX', 2)
    }
  }
}
</script>

<style scoped>
.headline {
  height: 196px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.headline > .text {
  color: white;
}
.headline > .text > .h1 {
  font-weight: 400;
  font-size: 32px;
  padding-bottom: 8px;
}
.headline > .text > .h2 {
  font-weight: 400;
  font-size: 32px;
}

.content {
  height: 540px;
  position: relative;
}
.content > .detail-box {
  position: absolute;
  width: 100%;
  height: 540px;
  top: -40px;
  left: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 40px 0;
}
.content > .detail-box > .logo {
  width: 800px;
  text-align: center;
}
.content > .detail-box > .introduce,
.content > .detail-box > .team {
  width: 800px;
}
.subtitle {
  font-weight: 700;
  font-size: 20px;
  color: #333333;
  padding-bottom: 15px;
}
.content > .detail-box > .introduce > .desc {
  font-weight: 200;
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
}
.content > .detail-box > .introduce > .desc a {
  color: #0068B5;
}
.team > .contact {
  display: flex;
  justify-content: space-between;
}
.team > .contact > .contact-item {
  display: flex;
  flex-direction: column;
}
.contact > .contact-item > .type {
  font-size: 12px;
  color: #999999;
  padding-bottom: 5px;
}
.contact > .contact-item > .value {
  font-size: 16px;
  color: #0068B5;
  white-space: pre-line;
}
</style>
